package org.abc.fund.service.strategy.request.backtest;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;
import java.time.LocalDate;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class BacktestRequest {
  @NotNull(message = "开始日期不能为空")
  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
  private LocalDate startDate;

  @NotNull(message = "结束日期不能为空")
  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
  private LocalDate endDate;

  @NotNull(message = "初始余额不能为空")
  @Positive(message = "初始余额必须为正数")
  private BigDecimal initialBalance;
}
